//读取文件
#include<stdio.h>
int main(int argc,const char*argv[]){
    FILE *fp = fopen("D:/tmp/test.txt","r");
    char buff[255];
    fscanf(fp,"%s",buff);
    printf("1:%s\n",buff);
    
    fgets(buff,255,fp);
    printf("2:%s\n",buff);

    fgets(buff,255,fp);
    printf("3:%s\n",buff);

    fclose(fp);
}